package moonlander;
import moonlander.LanderCanvas;

public class Timer extends Thread {
	
public void run() {
while(1==1) {
try {
	System.out.println("yes");
Thread.sleep(100); // 1ms delay
int y = LanderCanvas.getYPos();
LanderCanvas.setYPos(y-5);
// increment your craft’s y-position here
//LanderCanvas canvas = new LanderCanvas();
//canvas.repaint();
// repaint the canvas
} catch(InterruptedException e) {}
} } }

